<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        //
        let user = {
            name: "用户",
            age: 3,
            sex: "男"
        };

        let s = JSON.stringify(user);
        console.log(s);

        let parse = JSON.parse(s);
        console.log(parse);

    </script>
</head>
<body>

</body>
</html>